﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DinnerPartyapplication
{
    class PartyDinner
    {
        private int numberofpeople;
        private decimal costofbeverages;
        private decimal costdecoration;
        private bool healthyoption = false;
        private bool fancydecoration = false;
        private const int costoffoodperperson = 25;

        //properties
         public bool HealthyOption
        {
            set { healthyoption = value; }
        }

        public bool FancyDecoration
        {
           set { fancydecoration = value; }
        }


        //constructor
        public PartyDinner(int nrofpeople)
        {
            numberofpeople = nrofpeople;
        }


        //methods
        public decimal HEALTYHOPTIONS()
        {
            
            if (healthyoption)
            {
                costofbeverages = 5 * numberofpeople;
                costofbeverages = costofbeverages * 0.95M;
                return costofbeverages;
            }
            else
            {
                costofbeverages = 20 * numberofpeople;
                return costofbeverages;
            }

            
        }


        public decimal FANCYDECORATION()
        {
            if (fancydecoration)
            {
                costdecoration = 15 * numberofpeople;
                costdecoration = costdecoration + 50;
                return costdecoration;
            }
            else
            {
                costdecoration = 7.5M * numberofpeople;
                costdecoration = costdecoration + 30;
                return costdecoration;
            }
            
        }

        public void SetHealtybevarageoptions()
        {
            healthyoption = false;
            fancydecoration = false;
        }

        public decimal TOTALCOST(decimal bevarage, decimal decoration)
        {
            decimal totalcosts;
            totalcosts = bevarage + decoration + numberofpeople * 25;
            SetHealtybevarageoptions();
            return totalcosts;
        }


    }
}
